package com.yywq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yywq.pojo.GoodPicture;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 吴磊
 * @program: yywq
 * @create: 2021-03-20 22:16
 */
@Repository
public interface GoodPictureMapper extends BaseMapper<GoodPicture> {
    /**
     * 通过商品Id获取图片
     *
     * @param good_id
     * @return
     */
    List<GoodPicture> getGoodsPictureByGoodsId(@Param("good_id") String good_id);

    /**
     * 插入商品图片
     *
     * @param id
     * @param gid
     * @param goodPic
     * @return
     */
    int insertGoodsPic(@Param("id") String id, @Param("gid") String gid, @Param("goodPic") String goodPic);
}
